package com.zshy.base.monitor.domain.contract.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 由数据库提供监控数据传输对象
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StarMonitorDTO {
    private DingTalkDTO dingTalkDTO;

    private QiWeiDTO qiWeiDTO;

    /**
     * 钉钉的配置
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class DingTalkDTO {
        /**
         * 钉钉机器人配置 webhook
         */
        private String token;
        /**
         * 钉钉机器人加签关键字
         */
        private String secret;
    }

    /**
     * 企微
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class QiWeiDTO {
        private String key;
    }
}
